package com.warrior.superdata.exceptionhandler;

import lombok.Data;

/**
 * @Author xujian
 * @Description 自定义异常类
 * @Date 9:41 2020/8/27
 * @Param
 * @return
 **/
@Data
public class ApplicationException extends RuntimeException {

	/**
	 * 异常编码
	 */
	private int code;

	/**
	 * 异常消息
	 */
	private String message;

	public ApplicationException() {
	}

	public ApplicationException(int code, String message) {
		super();
		this.code = code;
		this.message = message;
	}

}
